package com.cph.es.service;

import com.cph.common.util.DateUtils;
import com.cph.es.Repository.VehicleCarRepository;
import com.cph.es.pojo.VehicleCar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class AddVehicleCarDataService {
    @Autowired
    private VehicleCarRepository repository;

    public void saveVehicleCarData(VehicleCar vehicleCar) {
        repository.save(vehicleCar);
    }

    public static void main(String[] args) {
        System.out.println(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,DateUtils.getNowDate()));
        System.out.println(System.currentTimeMillis());
    }
}
